package com.lin.controller;

import com.lin.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName JsonController
 * @Description
 * @Author lin
 * @Date 2021/12/12 下午11:17
 * @Version V1.0
 */
@Controller
public class JsonController {
    @RequestMapping("json1")
    @ResponseBody
    public String jsonTest1(){
        User build = User.builder().name("zhangsan").age(18).address("深圳").build();
        return build.toString();
    }
}
